<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>测试网页JS调用</title>
    <h3>JesseWeb</h3>
</head>
<body>

<input type="submit" onclick=getInfo("com.udte.tlw") value="获取app版本信息">
<input type="submit"
       onclick=install("http://172.18.104.11:8088/uploadServer/upload/apk/WeiYiKeJi/TouLanWang/com.udte.tlw-1-v1.0.1.true.apk")
       value="安   装      apk">
<input type="submit" onclick=unInstall("com.udte.tlw") value="卸   载      apk">
<input type="submit" onclick=isInstall("com.udte.tlw") value="apk是否已经被安装">

<input type="submit" onclick=getJon("ip") value="获取设备共享信息--ip">
<input type="submit" onclick=startApp("com.udte.tlw") value="启动第三方app">
<input type="submit" onclick=goBack() value="返回上个页面"><br>
<script>

    function getInfo(path){
       var code =  AndroidBrowser.getAppVersion(path);
       alert("app版本号==》"+code);
    }
    function install(path){
        AndroidBrowser.install(path);
    }
    function unInstall(packageName){
        AndroidBrowser.unInstall(packageName);
    }
     function isInstall(packageName){
        var isInstall =   AndroidBrowser.isInstall(packageName);
      alert(isInstall?"应用被安装":"应用未被安装");
    }

    function getJon(key){
    alert(AndroidContext.getValue(key));
    }
    function startApp(pkgName){
    AndroidContext.startActivity(pkgName,"","","","");
    }

    function goBack(){
    AndroidBrowser.goBack();
    }

</script>
</body>
</html>